// store.js
import {
	createStore,
	applyMiddleware
} from 'redux';
import thunk from 'redux-thunk';
import reducers from '../reducers/index';

const middlewares = [thunk];

const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore);

let store = createStoreWithMiddleware(reducers);

export default store;